Skip to main content

Example: Using the SNTP Service SL Library

Product: CODESYS IIOT Libraries SL

The SNTP Service SL Example.project sample project, which also provides a visualization for time requests and time settings via SNTP, shows how to use the SNTP Service SL library.

Description

The SNTP Service SL Example.project shows how to use the library function blocks in the following applications.

Application: SNTPRequestExample

The application reads the current time from an SNTP server and displays the result of the request, the local time, and the time difference in the visualization.

_example_img_sntp_visu.png

Application: SNTPServerExample

The SNTPServerExample application starts a simple SNTP server on port 123.

_example_img_sntp_server.png

System requirements and restrictions

Programming system

CODESYS Development System (version 3.5.18.0 or higher)

Runtime system

CODESYS Control Win (version 3.5.18.0)

Add-on components

-

Supported platforms/devices

All

Note

Note: Use the Device Reader project to find out the supported features of your device.

Device Reader is available free of charge in the CODESYS Store International.

Restrictions

  • Only SNTP unicast mode is supported.

  • Telegrams are transmitted unencrypted (without Autokey Cryptography).

  • IP V6 is not supported.

Note

_example_icon.png DOWNLOAD projects